<script type="text/javascript">
	$(document).ready(function() {
		$("#list").tablesorter({
			widthFixed: true,
			widgets: ['zebra']
		}).tablesorterPager({
			container: $(".pager")
		});
	});
</script>
<div id="main-content" class="prepend-1 span-19 last">
	<h3>Daftar Pengumuman</h3>
	<table border="1" id="list">
	<thead>
		<tr>
			<th>Judul</th>
			<th width="150">Di Poskan Oleh</th>
			<th width="150">Tanggal</th>
		</tr>
	</thead>
	<tfoot>
		<?php echo $pager; ?>
	</tfoot>
	<tbody>
<?php
	$counter = $offset; 
	foreach ($announcements as $announcement) : 
?>
		<tr>
			<td><?php echo anchor($role.'/home/index/'.$counter, $announcement->title); ?></td>
			<td><?php echo $announcement->creator; ?></td>
<?php 
	$counter += 1;
	$time = mysql_to_unix($announcement->date);
?>
			<td align="center"><?php echo mdate(DATE_FORMAT, $time); ?></td>
		</tr>
<?php endforeach; ?>
	</tbody>
	</table>
	<div class="clear"><?php echo nbs(); ?></div>
</div>
